package com.turkcell.dv.model;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;

@Entity
@Table(name = "L_SENSOR")
public class LogSensorDOM {
	private Long id;
	private String serialNo;
	private String sensorId;
	private String roomId;
	private Long timeInMillis;
	private String temperature;
	private String humidity;
	private String occupied;
	private String hasTemp;
	private String hasOccup;
	private String hasHumid;

	public LogSensorDOM() {
	}

	@Id
	@Column(name = "ID", unique = true, nullable = false, precision = 5, scale = 0)
	@GeneratedValue(strategy = GenerationType.IDENTITY)
	public Long getId() {
		return this.id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	@Column(name = "", nullable = false, length = 45)
	public String getSerialNo() {
		return serialNo;
	}

	public void setSerialNo(String serialNo) {
		this.serialNo = serialNo;
	}

	@Column(name = "", nullable = false, length = 45)
	public String getSensorId() {
		return sensorId;
	}

	public void setSensorId(String sensorId) {
		this.sensorId = sensorId;
	}

	@Column(name = "", nullable = false, length = 45)
	public String getRoomId() {
		return roomId;
	}

	public void setRoomId(String roomId) {
		this.roomId = roomId;
	}

	@Column(name = "", nullable = false, length = 45)
	public Long getTimeInMillis() {
		return timeInMillis;
	}

	public void setTimeInMillis(Long timeInMillis) {
		this.timeInMillis = timeInMillis;
	}

	@Column(name = "", nullable = false, length = 45)
	public String getTemperature() {
		return temperature;
	}

	public void setTemperature(String temperature) {
		this.temperature = temperature;
	}

	@Column(name = "", nullable = false, length = 45)
	public String getHumidity() {
		return humidity;
	}

	public void setHumidity(String humidity) {
		this.humidity = humidity;
	}

	@Column(name = "", nullable = false, length = 45)
	public String getOccupied() {
		return occupied;
	}

	public void setOccupied(String occupied) {
		this.occupied = occupied;
	}

	@Column(name = "", nullable = false, length = 1)
	public String getHasTemp() {
		return hasTemp;
	}

	public void setHasTemp(String hasTemp) {
		this.hasTemp = hasTemp;
	}

	@Column(name = "", nullable = false, length = 1)
	public String getHasOccup() {
		return hasOccup;
	}

	public void setHasOccup(String hasOccup) {
		this.hasOccup = hasOccup;
	}

	@Column(name = "", nullable = false, length = 1)
	public String getHasHumid() {
		return hasHumid;
	}

	public void setHasHumid(String hasHumid) {
		this.hasHumid = hasHumid;
	}
}
